﻿using System;

namespace DyUi.Base.Interfaces.SubSystems
{
    public interface IMessageSubSystem : IDyUiControllerSubSystem
    {
        void PublishEvent(IDyUiComponent component, String eventName, Object arg);
        Guid SubscribeToEvent(IDyUiComponent component, Func<String, Object, Boolean> predicate, Action<Guid, String, Object> callback);
    }
}